<? if(!defined('IN_ROOT')) exit('Access Denied'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><? $user=$this->user; $setting=$this->setting; ?><html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Manyou's Control Panel</title>
        <meta http-equiv="Content-Type" content="text/html; charset=<?=MY_CHARSET?>">
        <link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet"/>
        <script src="js/jquery.js" type="text/javascript"></script>
        <script type="text/javascript">
            function selectCell(obj) {
                var trid=obj.value;
                $("#"+trid+" input[name='regular_code[]']").each(function(){
                    this.checked = obj.checked;
                });
            }
        </script>
    </head>

    <body>

        <div id="append">
        </div>

        <div class="container">
            <div class="hastabmenu" style="height:30px">
                <ul class="tabmenu">
                    <li><a href="index.php?admin_usergroup/default<?=$setting['seo_suffix']?>">会员用户组</a> </li>
                    <li><a  href="index.php?admin_usergroup/system<?=$setting['seo_suffix']?>">系统用户组</a></li>
                    <li class="tabcurrent"><a  href="#">设置组权限</a></li>
                </ul>
            </div>


            <? if(isset($message)) { ?>            <? $type=isset($type)?$type:'correctmsg';  ?>            <div class="<?=$type?>"><p><?=$message?></p></div>
            <? } ?>            <div class="mainbox">
                <form action="index.php?admin_usergroup/regular/<?=$group['groupid']?><?=$setting['seo_suffix']?>" method="post">
                    <input type="hidden" name="groupid" value="<?=$group['groupid']?>">
                    <table class="datalist fixwidth" cellspacing="1"><tbody>
                            <tr id="regular_view">
                                <td class="first-cell" valign="top" width="18%">
                                    <input name="chkGroup" value="regular_view"  class="checkbox" type="checkbox" onclick="selectCell(this);">页面浏览（前台）
                                </td>
                                <td>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="user/register"  <? if(false!==strpos($group['regulars'],'user/register')) { ?>checked<? } ?>  class="checkbox" type="checkbox">用户注册
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="index/default"  <? if(false!==strpos($group['regulars'],'index/default')) { ?>checked<? } ?>  class="checkbox" type="checkbox">首页浏览
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="category/view"  <? if(false!==strpos($group['regulars'],'category/view')) { ?>checked<? } ?>  class="checkbox" type="checkbox">分类浏览
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="category/list"  <? if(false!==strpos($group['regulars'],'category/list')) { ?>checked<? } ?>  class="checkbox" type="checkbox">列表浏览
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="question/view"  <? if(false!==strpos($group['regulars'],'question/view')) { ?>checked<? } ?>  class="checkbox" type="checkbox">浏览线路
                                    </div>viewrecommend
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="category/recommend"  <? if(false!==strpos($group['regulars'],'category/recommend')) { ?>checked<? } ?>  class="checkbox" type="checkbox">精彩线路推荐
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="note/list"  <? if(false!==strpos($group['regulars'],'note/list')) { ?>checked<? } ?>  class="checkbox" type="checkbox">公告列表
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="note/view"  <? if(false!==strpos($group['regulars'],'note/view')) { ?>checked<? } ?>  class="checkbox" type="checkbox">公告浏览
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="rss/category"  <? if(false!==strpos($group['regulars'],'rss/category')) { ?>checked<? } ?>  class="checkbox" type="checkbox">分类RSS
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="rss/list"  <? if(false!==strpos($group['regulars'],'rss/list')) { ?>checked<? } ?>  class="checkbox" type="checkbox">列表RSS
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="rss/question"  <? if(false!==strpos($group['regulars'],'rss/question')) { ?>checked<? } ?>  class="checkbox" type="checkbox">线路RSS
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="user/space_ask,user/space_answer,user/space"  <? if(false!==strpos($group['regulars'],'user/space_ask,user/space_answer,user/space')) { ?>checked<? } ?>  class="checkbox" type="checkbox">用户空间
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="user/scorelist"  <? if(false!==strpos($group['regulars'],'user/scorelist')) { ?>checked<? } ?>  class="checkbox" type="checkbox">用户排行榜
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="question/search"  <? if(false!==strpos($group['regulars'],'question/search')) { ?>checked<? } ?>  class="checkbox" type="checkbox">线路搜索
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="question/add"  <? if(false!==strpos($group['regulars'],'question/add')) { ?>checked<? } ?>  class="checkbox" type="checkbox">线路订阅
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="ticket/default,ticket/search,ticket/add"  <? if(false!==strpos($group['regulars'],'ticket/default,ticket/search,ticket/add')) { ?>checked<? } ?>  class="checkbox" type="checkbox">在线订票
                                    </div>
                                </td>
                            </tr>

                            <? if(6!=$group['groupid']) { ?>                            <tr id="regular_user">
                                <td class="first-cell" valign="top" width="18%">
                                    <input name="chkGroup" value="regular_user"  class="checkbox" type="checkbox" onclick="selectCell(this);">用户相关（前台）
                                </td>
                                <td>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="user/register"  <? if(false!==strpos($group['regulars'],'user/register')) { ?>checked<? } ?>  class="checkbox" type="checkbox">注册用户
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="user/default,user/score"  <? if(false!==strpos($group['regulars'],'user/default,user/score')) { ?>checked<? } ?>  class="checkbox" type="checkbox">我的积分
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="user/ask"  <? if(false!==strpos($group['regulars'],'user/ask')) { ?>checked<? } ?>  class="checkbox" type="checkbox">我的线路
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="user/answer"  <? if(false!==strpos($group['regulars'],'user/answer')) { ?>checked<? } ?>  class="checkbox" type="checkbox">我的评论
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="user/favorite,question/addfavorite"  <? if(false!==strpos($group['regulars'],'user/favorite,question/addfavorite')) { ?>checked<? } ?>  class="checkbox" type="checkbox">我的收藏
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="user/profile"  <? if(false!==strpos($group['regulars'],'user/profile')) { ?>checked<? } ?>  class="checkbox" type="checkbox">个人资料
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="user/uppass"  <? if(false!==strpos($group['regulars'],'user/uppass')) { ?>checked<? } ?>  class="checkbox" type="checkbox">修改密码
                                    </div>

                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="user/editimg,user/saveimg"  <? if(false!==strpos($group['regulars'],'user/editimg,user/saveimg')) { ?>checked<? } ?>  class="checkbox" type="checkbox">编辑头像
                                    </div>
                                </td>
                            </tr>


                            <tr id="regular_question">
                                <td class="first-cell" valign="top" width="18%">
                                    <input name="chkGroup" value="regular_question"  class="checkbox" type="checkbox" onclick="selectCell(this);">线路相关（前台）
                                </td>
                                <td>

                                    <div style="width: 200px; float: left;">
                                    
                                        <input name="regular_code[]" value="line/pifalineprice,line/pifaline,line/delete,line/pifalineedit,line/editpricesave,line/editpriceedit,line/delprice,line/pifaeditday,line/pifaeditdesc,line/linecate,line/linecateadd,line/list,line/linecateedit,line/linecatedelete"  <? if(false!==strpos($group['regulars'],'line/pifalineprice,line/pifaline,line/delete,line/pifalineedit,line/editpricesave,line/editpriceedit,line/delprice,line/pifaeditday,line/pifaeditdesc,line/linecate,line/linecateadd,line/list,line/linecateedit,line/linecatedelete')) { ?>checked<? } ?>  class="checkbox" type="checkbox">批发商线路管理
                                    </div>

                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="question/answer"  <? if(false!==strpos($group['regulars'],'question/answer')) { ?>checked<? } ?>  class="checkbox" type="checkbox">发布线路
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="question/adopt"  <? if(false!==strpos($group['regulars'],'question/adopt')) { ?>checked<? } ?>  class="checkbox" type="checkbox">采集线路
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="question/close"  <? if(false!==strpos($group['regulars'],'question/close')) { ?>checked<? } ?>  class="checkbox" type="checkbox">关闭线路
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="question/supply"  <? if(false!==strpos($group['regulars'],'question/supply')) { ?>checked<? } ?>  class="checkbox" type="checkbox">补充线路
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="question/editanswer"  <? if(false!==strpos($group['regulars'],'question/editanswer')) { ?>checked<? } ?>  class="checkbox" type="checkbox">修改线路
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="question/search"  <? if(false!==strpos($group['regulars'],'question/search')) { ?>checked<? } ?>  class="checkbox" type="checkbox">线路搜索
                                    </div>
                                </td>
                            </tr>


                            <tr id="regular_message">
                                <td class="first-cell" valign="top" width="18%">
                                    <input name="chkGroup" value="regular_message"  class="checkbox" type="checkbox" onclick="selectCell(this);">站内消息（前台）
                                </td>
                                <td>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="message/send"  <? if(false!==strpos($group['regulars'],'message/send')) { ?>checked<? } ?>  class="checkbox" type="checkbox">发消息
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="message/new"  <? if(false!==strpos($group['regulars'],'message/new')) { ?>checked<? } ?>  class="checkbox" type="checkbox">收件箱
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="message/personal"  <? if(false!==strpos($group['regulars'],'message/personal')) { ?>checked<? } ?>  class="checkbox" type="checkbox">私人消息
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="message/system"  <? if(false!==strpos($group['regulars'],'message/system')) { ?>checked<? } ?>  class="checkbox" type="checkbox">系统消息
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="message/outbox"  <? if(false!==strpos($group['regulars'],'message/outbox')) { ?>checked<? } ?>  class="checkbox" type="checkbox">发件箱
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="message/view"  <? if(false!==strpos($group['regulars'],'message/view')) { ?>checked<? } ?>  class="checkbox" type="checkbox">浏览消息
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="message/remove"  <? if(false!==strpos($group['regulars'],'message/remove')) { ?>checked<? } ?>  class="checkbox" type="checkbox">删除消息
                                    </div>
                                </td>
                            </tr>
                            <? if(1==$group['grouptype']) { ?>                            <tr id="regular_setting">
                                <td class="first-cell" valign="top" width="18%">
                                    <input name="chkGroup" value="regular_setting"  class="checkbox" type="checkbox" onclick="selectCell(this);">网站设置（后台）
                                </td>
                                <td>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="admin_main/default,admin_main/header,admin_main/menu,admin_main/stat,admin_main/login,admin_main/logout"  <? if(false!==strpos($group['regulars'],'admin_main/default,admin_main/header,admin_main/menu,admin_main/stat,admin_main/login,admin_main/logout')) { ?>checked<? } ?>  class="checkbox" type="checkbox">后台登录
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="admin_setting/base,admin_setting/default"  <? if(false!==strpos($group['regulars'],'admin_setting/base,admin_setting/default')) { ?>checked<? } ?>  class="checkbox" type="checkbox">基本设置
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="admin_setting/list"  <? if(false!==strpos($group['regulars'],'admin_setting/list')) { ?>checked<? } ?>  class="checkbox" type="checkbox">列表显示
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="admin_setting/register"  <? if(false!==strpos($group['regulars'],'admin_setting/register')) { ?>checked<? } ?>  class="checkbox" type="checkbox">注册设置
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="admin_setting/mail"  <? if(false!==strpos($group['regulars'],'admin_setting/mail')) { ?>checked<? } ?>  class="checkbox" type="checkbox">邮件设置
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="admin_setting/seo"  <? if(false!==strpos($group['regulars'],'admin_setting/seo')) { ?>checked<? } ?>  class="checkbox" type="checkbox">seo设置
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="admin_setting/word"  <? if(false!==strpos($group['regulars'],'admin_setting/word')) { ?>checked<? } ?>  class="checkbox" type="checkbox">词语过滤
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="admin_setting/cache"  <? if(false!==strpos($group['regulars'],'admin_setting/cache')) { ?>checked<? } ?>  class="checkbox" type="checkbox">更新缓存
                                    </div>
                                </td>
                            </tr>

                            <tr id="regular_manage">
                                <td class="first-cell" valign="top" width="18%">
                                    <input name="chkGroup" value="regular_manage"  class="checkbox" type="checkbox" onclick="selectCell(this);">网站管理（后台）
                                </td>
                                <td>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="admin_category/default,admin_category/add,admin_category/edit,admin_category/view,admin_category/remove,admin_category/reorder"  <? if(false!==strpos($group['regulars'],'admin_category/default,admin_category/add,admin_category/edit,admin_category/view,admin_category/remove,admin_category/reorder')) { ?>checked<? } ?>  class="checkbox" type="checkbox">分类管理
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="admin_question/default,admin_question/searchquestion,admin_question/searchanswer,admin_question/removequestion,admin_question/removeanswer,admin_question/edit"  <? if(false!==strpos($group['regulars'],'admin_question/default,admin_question/searchquestion,admin_question/searchanswer,admin_question/removequestion,admin_question/removeanswer,admin_question/edit')) { ?>checked<? } ?>  class="checkbox" type="checkbox">线路管理
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="admin_user/default,admin_user/search,admin_user/add,admin_user/remove,admin_user/edit"  <? if(false!==strpos($group['regulars'],'admin_user/default,admin_user/search,admin_user/add,admin_user/remove,admin_user/edit')) { ?>checked<? } ?>  class="checkbox" type="checkbox">用户管理
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="admin_usergroup/default,admin_usergroup/add,admin_usergroup/remove,admin_usergroup/edit"  <? if(false!==strpos($group['regulars'],'admin_usergroup/default,admin_usergroup/add,admin_usergroup/remove,admin_usergroup/edit')) { ?>checked<? } ?>  class="checkbox" type="checkbox">用户组管理
                                    </div>
                                    <div style="width: 200px; float: left;">
                                        <input name="regular_code[]" value="admin_note/default,admin_note/add,admin_note/edit,admin_note/remove"  <? if(false!==strpos($group['regulars'],'admin_note/default,admin_note/add,admin_note/edit,admin_note/remove')) { ?>checked<? } ?>  class="checkbox" type="checkbox">公告管理
                                    </div>
                                </td>
                            </tr>
                            <? } ?>                            <? } ?>                            <tr class="nobg">
                                <td><input type="submit" value="提交"  class="btn"></td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>

    </body>

</html>
